import layoutHeaderAside from '@/layout/header-aside'

const meta = { requiresAuth: true }

export default {
  path: '/weixin',
  name: 'weixin',
  meta,
  redirect: { name: 'weixin-index' },
  component: layoutHeaderAside,
  children: (pre => [
    { path: 'index', name: 'weixin-index', component: () => import('@/pages/weixin/index'), meta: { meta, title: '注册渠道' } },
    { path: 'create', name: 'weixin-create', component: () => import('@/pages/weixin/create'), meta: { meta, title: '编辑' } }
  ])('weixin-')
}